package com.adc.douyu_assistant.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;

/**
 * @Description
 * @Author lilin
 * @Create 2018-09-14 14:40
 **/
@Document(collection = "DanmuMessage")
public class DanmuMessage {
    @Id
    private String id;
//    @Id
    private String uid;
    private String nickname;
    private ArrayList<String> txtList;
    private String badgeNickName;
    private String badgeLevel;

    public DanmuMessage(String uid, String nickname, ArrayList<String> txtList, String badgeNickName, String badgeLevel) {
        this.uid = uid;
        this.nickname = nickname;
        this.txtList = txtList;
        this.badgeNickName = badgeNickName;
        this.badgeLevel = badgeLevel;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public ArrayList<String> getTxtList() {
        return txtList;
    }

    public void setTxtList(ArrayList<String> txtList) {
        this.txtList = txtList;
    }

    public String getBadgeNickName() {
        return badgeNickName;
    }

    public void setBadgeNickName(String badgeNickName) {
        this.badgeNickName = badgeNickName;
    }

    public String getBadgeLevel() {
        return badgeLevel;
    }

    public void setBadgeLevel(String badgeLevel) {
        this.badgeLevel = badgeLevel;
    }

    @Override
    public String toString() {
        return "DanmuMessage{" +
                "id='" + id + '\'' +
                ", uid='" + uid + '\'' +
                ", nickname='" + nickname + '\'' +
                ", txtList=" + txtList +
                ", badgeNickName='" + badgeNickName + '\'' +
                ", badgeLevel='" + badgeLevel + '\'' +
                '}';
    }
}
